
<%@ page import="dex.micros_gdc.Testcase" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'testcase.label', default: 'Testcase')}" />
		<g:set var="taskEntityName" value="${message(code: 'task.label', default: 'Back Task')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-testcase" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><g:link class="list" controller="task" action="list"><g:message code="default.list.label" args="[taskEntityName]" /></g:link></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-testcase" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list testcase">

				<g:if test="${testcaseInstance?.projectName}">
				<li class="fieldcontain">
					<span id="projectName-label" class="property-label"><g:message code="testcase.projectName.label" default="Project Name" /></span>

						<span class="property-value" aria-labelledby="projectName-label"><g:fieldValue bean="${testcaseInstance}" field="projectName"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.activityNumber}">
				<li class="fieldcontain">
					<span id="activityNumber-label" class="property-label"><g:message code="testcase.activityNumber.label" default="Activity Number" /></span>

						<span class="property-value" aria-labelledby="activityNumber-label"><g:fieldValue bean="${testcaseInstance}" field="activityNumber"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.receivedDate}">
				<li class="fieldcontain">
					<span id="receivedDate-label" class="property-label"><g:message code="testcase.receivedDate.label" default="Received Date" /></span>

						<span class="property-value" aria-labelledby="receivedDate-label"><g:formatDate date="${testcaseInstance?.receivedDate}" format="MM/dd/yyyy"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.status}">
				<li class="fieldcontain">
					<span id="status-label" class="property-label"><g:message code="testcase.status.label" default="Status" /></span>

						<span class="property-value" aria-labelledby="status-label"><g:fieldValue bean="${testcaseInstance}" field="status"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.dueDate}">
				<li class="fieldcontain">
					<span id="dueDate-label" class="property-label"><g:message code="testcase.dueDate.label" default="Due Date" /></span>

						<span class="property-value" aria-labelledby="dueDate-label"><g:formatDate date="${testcaseInstance?.dueDate}"  format="MM/dd/yyyy"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.testcaseStatus}">
				<li class="fieldcontain">
					<span id="testcaseStatus-label" class="property-label"><g:message code="testcase.testcaseStatus.label" default="Testcase Status" /></span>

						<span class="property-value" aria-labelledby="testcaseStatus-label"><g:fieldValue bean="${testcaseInstance}" field="testcaseStatus"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.comments}">
				<li class="fieldcontain">
					<span id="comments-label" class="property-label"><g:message code="testcase.comments.label" default="Comments" /></span>

						<span class="property-value" aria-labelledby="comments-label"><g:fieldValue bean="${testcaseInstance}" field="comments"/></span>

				</li>
				</g:if>

				<g:if test="${testcaseInstance?.delivered}">
				<li class="fieldcontain">
					<span id="delivered-label" class="property-label"><g:message code="testcase.delivered.label" default="Delivered" /></span>

						<span class="property-value" aria-labelledby="delivered-label"><g:fieldValue bean="${testcaseInstance}" field="delivered"/></span>

				</li>
				</g:if>

			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${testcaseInstance?.id}" />
					<g:link class="edit" action="edit" id="${testcaseInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
